﻿using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Web;
using FDSimpleModelGenerator.Common.Enums;

namespace FDSimpleModelGenerator.Common.HtmlConvert
{
    /// <summary>
    /// C#符号处理
    /// </summary>
    public class CSharpSymbolHtml : BasicSymbolHtml
    {
        public override LanguageDataType LanguageDataType => LanguageDataType.CSharp;

        /// <summary>
        /// 所有关键字
        /// </summary>
        public override IList<string> Keywords => new List<string>
        {
            "abstract","base","bool",
            "break","byte","case",
            "catch","char","checked",
            "class","const","continue",
            "decimal","default","delegate",
            "do","double","else",
            "enum","event","explicit",
            "extern","false","finally",
            "static","float","for",
            "foreach","goto","if",
            "implicit","int",
            "interface","internal","is",
            "lock","long","namespace",
            "new","null","object",
            "operator","out","override",
            "params","private","protected",
            "public","readonly","ref",
            "return","sbyte","sealed",
            "short","sizeof","stackalloc",
            "static","string","struct",
            "switch","this","throw",
            "true","try","typeof",
            "uint","ulong","unchecked",
            "ushort","using","virtual",
            "void","volatile","while",
            "get","set","in","DateTime" // in 有 using finally 因此最后
        };

        public override string KeywordColor => "#0000ff";

    }
}
